package com.tc.entity;

import cn.afterturn.easypoi.excel.annotation.*;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Auther: tianchao
 * @Date: 2021/8/28 14:54
 * @Description:
 */
@Data
@ExcelTarget(value = "user")
public class User {
    @Excel(name = "编号",needMerge = true)
    private String id;
    @Excel(name = "头像",type = 2,imageType = 1,width = 30,height = 30,needMerge = true)
    private String avatar;
    @Excel(name = "姓名",width = 10,needMerge = true)
    private String name;
    @Excel(name = "年龄",suffix = "岁",needMerge = true)
    private Integer age;
    @Excel(name = "生日",exportFormat = "yyyy-MM-dd HH:mm:ss",needMerge = true)
    private Date birthday;
    @Excel(name = "状态",replace = {"启用_1","禁用_0"},needMerge = true)
    private Integer status;
    @Excel(name = "爱好",needMerge = true)
    private List<String> habbys;
    @ExcelEntity(name = "身份信息",show = true)
    private Card card;
    @ExcelCollection(name = "订单列表")
    private List<Order> orders;
//    @ExcelEntity
//    private Card card1;
}
